﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPS.SDK.model.yunfile
{
    /// <summary>
    /// 文件链接
    /// </summary>
    public class LinkInfo
    {
        public long result;
        public string linkurl;
        public string fname;

        public static LinkInfo fromJsonObject(JObject jsonObject)
        {
            LinkInfo linkInfo = new LinkInfo();
            linkInfo.result = Convert.ToInt64(jsonObject["result"]);
            linkInfo.linkurl = jsonObject["link_url"].ToString();
            linkInfo.fname = jsonObject["file_name"].ToString();
            return linkInfo;
        }
    }
}
